package com.example.demo.service;

import com.example.demo.pojo.Back;
import com.example.demo.pojo.Book;
import com.example.demo.pojo.Borrow;
import com.example.demo.pojo.request.BookRequest;
import com.example.demo.pojo.request.BorrowRequest;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IBorrowService {
    List<Borrow> list();

    PageInfo<Borrow> page(BorrowRequest borrowRequest);

    Borrow getUser(Integer id);

    void getIDUser(Borrow borrow);

    void save(Borrow Borrow);

    void saveBack(Back back);

    PageInfo<Back> pageBack(BorrowRequest borrowRequest);

    void delete(Integer id);

    void deleteBack(Integer id);

    Map<String,Object> getCountByTimeRange(String timeRange);
}
